package com.prp.db.idao;

import java.util.List;

import com.prp.db.po.NeighbourRelationship;
import com.prp.db.po.NeighbourRelationshipId;

public interface INeighbourRelationshipDAO {
	public void save(NeighbourRelationship transientInstance);

	public void delete(NeighbourRelationship persistentInstance);

	public NeighbourRelationship findById(NeighbourRelationshipId id);

	public List findByExample(NeighbourRelationship instance);

	public List findByProperty(String propertyName, Object value);
	
	public List findByProperties(String[] propertyNames, Object[] values);
	
	public List findByUserId(int userId);

	public List findByBuildup(Object buildup);

	public List findAll();

	public NeighbourRelationship merge(NeighbourRelationship detachedInstance);

	public void attachDirty(NeighbourRelationship instance);

	public void attachClean(NeighbourRelationship instance);
	
	public boolean isNeighbour(int userId1, int userId2);

}
